home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / widget / nsIClipboardOwner.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIClipboardOwner.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIClipboardOwner_h__
  6. #define __gen_nsIClipboardOwner_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsITransferable_h__
  14. #include "nsITransferable.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIClipboardOwner */
  23. #define NS_ICLIPBOARDOWNER_IID_STR "5a31c7a1-e122-11d2-9a57-000064657374"
  24.  
  25. #define NS_ICLIPBOARDOWNER_IID \
  26.   {0x5a31c7a1, 0xe122, 0x11d2, \
  27.     { 0x9a, 0x57, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
  28.  
  29. class NS_NO_VTABLE nsIClipboardOwner : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICLIPBOARDOWNER_IID)
  33.  
  34.   /**
  35.     * Notifies the owner of the clipboard transferable that the
  36.     * transferable is being removed from the clipboard
  37.     *
  38.     * @param  aTransferable The transferable
  39.     * @result NS_Ok if no errors
  40.     */
  41.   /* void LosingOwnership (in nsITransferable aTransferable); */
  42.   NS_IMETHOD LosingOwnership(nsITransferable *aTransferable) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSICLIPBOARDOWNER \
  48.   NS_IMETHOD LosingOwnership(nsITransferable *aTransferable); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSICLIPBOARDOWNER(_to) \
  52.   NS_IMETHOD LosingOwnership(nsITransferable *aTransferable) { return _to LosingOwnership(aTransferable); } 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSICLIPBOARDOWNER(_to) \
  56.   NS_IMETHOD LosingOwnership(nsITransferable *aTransferable) { return !_to ? NS_ERROR_NULL_POINTER : _to->LosingOwnership(aTransferable); } 
  57.  
  58. #if 0
  59. /* Use the code below as a template for the implementation class for this interface. */
  60.  
  61. /* Header file */
  62. class nsClipboardOwner : public nsIClipboardOwner
  63. {
  64. public:
  65.   NS_DECL_ISUPPORTS
  66.   NS_DECL_NSICLIPBOARDOWNER
  67.  
  68.   nsClipboardOwner();
  69.  
  70. private:
  71.   ~nsClipboardOwner();
  72.  
  73. protected:
  74.   /* additional members */
  75. };
  76.  
  77. /* Implementation file */
  78. NS_IMPL_ISUPPORTS1(nsClipboardOwner, nsIClipboardOwner)
  79.  
  80. nsClipboardOwner::nsClipboardOwner()
  81. {
  82.   /* member initializers and constructor code */
  83. }
  84.  
  85. nsClipboardOwner::~nsClipboardOwner()
  86. {
  87.   /* destructor code */
  88. }
  89.  
  90. /* void LosingOwnership (in nsITransferable aTransferable); */
  91. NS_IMETHODIMP nsClipboardOwner::LosingOwnership(nsITransferable *aTransferable)
  92. {
  93.     return NS_ERROR_NOT_IMPLEMENTED;
  94. }
  95.  
  96. /* End of implementation class template. */
  97. #endif
  98.  
  99.  
  100. #endif /* __gen_nsIClipboardOwner_h__ */
  101.